package animal;

public class animal {
    private String name;
    private int age;
    private String color;
    private String varieties;
    private int weight;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public String getVarieties() {
        return varieties;
    }

    public void setVarieties(String varieties) {
        this.varieties = varieties;
    }
    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
    public void animal2(){
        System.out.println("狗名："+name+",狗龄："+age+"岁"+",颜色："+color+",种类："+varieties+",重量："+weight+"KG");

    }


}
